<?php
  require_once("allUser.php");
	$username = $_POST['username'];
	$password = $_POST['password'];
  $currentuser = new allUser($username,$password,null);
  if($currentuser->login())
		$currentuser->gohome();
	else
		header("Location:/Student/index.php?error=1");
?>
